import utils

def test_redfish_doget(hostname, port, username, password, report):
    uris = ['/redfish/v1/SystemOverview', '/redfish/v1/Chassis/1/Boards',
            '/redfish/v1/Chassis/1/Thermal', '/redfish/v1/Systems/1/Memory']
    for uri in uris:
        rsp, rsp_time = utils.do_get(hostname, port, (username, password), uri)
        print("rsp: {}".format(rsp))
        if rsp.status_code == 200:
            report[uri] = rsp_time
            
    return report

def test_UI_doget(hostname, port, username, password, report, header):
    uris = ['/UI/Rest/Overview', '/UI/Rest/GenericInfo',
            '/UI/Rest/System/ProductInfo', '/UI/Rest/System/Processor',
            '/UI/Rest/Maintenance/Alarm', '/UI/Rest/AccessMgnt/Accounts',
            '/UI/Rest/Sessions']
    for uri in uris:
        rsp, rsp_time = utils.do_get_UI(hostname, port, (username, password), uri, header)
        if rsp.status_code == 200:
            report[uri] = rsp_time
            
    return report

